package com.youpai.platform.chat.service.service;

import com.youpai.platform.chat.service.entity.dto.ChatMessageDTO;
import com.youpai.platform.chat.web.entity.req.RecallMessageReq;
import com.youpai.platform.chat.web.entity.req.SyncMsgListRequest;
import com.youpai.platform.chat.web.entity.resp.RecallMessageResp;

import java.util.List;

/**
 * @date: 2022/7/17 17:32
 * @author: Anna
 * @version: 1.0
 * @description: 聊天消息service
 */
public interface ChatMessageService {

    /**
     * 同步历史消息请求
     *
     * @param req 请求参数
     */
    List<ChatMessageDTO> syncMsgListRequest(SyncMsgListRequest req);

    /**
     * 撤回消息
     *
     * @param req 撤回消息请求参数
     * @return 撤回结果
     */
    RecallMessageResp recallTheMessage(RecallMessageReq req);

}
